/*
 *  AMesh.h
 *  Amano Engine
 *
 *  Created by Aurelien Serandour on 07/03/11.
 *  Copyright 2011 __MyCompanyName__. All rights reserved.
 *
 */

#ifndef _AMANO_MESH_H_
#define _AMANO_MESH_H_

#include "OpenGL/gl.h"

namespace Amano
{
	class AMesh
	{
	public:
		AMesh();
		~AMesh();
		
		void createVBOs();
		void deleteVBOs();
		void render();
	private:
		float* m_vertexBuffer;
		float* m_normalBuffer;
		GLuint* m_indexBuffer;
		
		GLuint m_VBO;
		GLuint m_IBO;
		int m_numberOfVertices;
		int m_numberOfIndices;
		
	public:
		inline int getNumberOfVertices(){ return m_numberOfVertices; }
		inline int getNumberOfIndices(){ return m_numberOfIndices; }
	};
}

#endif // _AMANO_MESH_H_